new Vue({
    el: '#pc',
    data: {
        activeNum: '2',
        crunmArray:['首页','产品中心','产品详情'],
        detailFlag:true,
        noticeFlag:false,
        inforFlag:false,
        payFlag:false,
        deatilForm:{
            date:new Date()
        },
        //填写投保信息中的form
        form: {
            beginDate: new Date(),
            name: '',
            type: '',
            num: '',
            date: '',
            tel: '',
            email: ''
        },
        //详情的tab
        firstNavFlagDetail:true,
        secondNavFlagDetail:false,
        threeNavFlagDetail:false,
        fourNavFlagDetail:false,
        //付款的tab
        firstNavFlagPay:true,
        sectondNavFlagPay:false,
        thressNavFlagPay:false,
    },
    created: function () {

    },
    mounted: function () {


    },
    watch: {

    },
    methods: {
        //产品详情中的tab切换
        switchNavDetail:function(val){
            this.firstNavFlagDetail=false;
            this.secondNavFlagDetail=false;
            this.threeNavFlagDetail=false;
            this.fourNavFlagDetail=false;
            this[val]=true;
        },
        //支付tab切换
        switchNavPay:function (val) {
            this.firstNavFlagPay=false;
            this.sectondNavFlagPay=false;
            this.thressNavFlagPay=false;
            this[val]=true;
        },
        jump:function (val) {
            this.detailFlag=false;
            this.noticeFlag=false;
            this.inforFlag=false;
            this.payFlag=false;
            this[val]=true;
            window.scrollTo(0,0);
        },
        gotoPage:function(val){
            gotoUrl(val)
        }




    }
})
